package vo;

import po.StaffPO;

public class TeacherVO extends StaffVO{
	public TeacherVO(String name,int ID,String department,String occupation){
		this.setName(name);
		this.ID = ID;
		this.department = department;
	}
	public TeacherVO() {
	}
	
	public TeacherVO(int ID, String name, String sex, long phone_num, 
			String mail_address, String department, int current_class_num, String employ_time) {
		super(ID, name, sex, phone_num, mail_address, department, current_class_num, employ_time);
	}
	
	public TeacherVO(StaffPO staffPO) {
		if(staffPO == null) {
			return;
		}
		this.phone_num = staffPO.getPhoneNum();
		this.ID = staffPO.getID();
		this.name = staffPO.getName();
		this.sex = staffPO.getSex();
		this.mail_address = staffPO.getMailAddress();
		this.department = staffPO.getDepartment();
		this.current_class_num = staffPO.getCurrentClassNum();
		this.employ_time = staffPO.getEmployTime();
	}
	
	public int getAuthority() {
		return AUTHORITY;
	}
}
